package org.ruiyichen.guizhou.agr.ui.mineview;

import android.content.Context;
import android.os.Handler;
import android.widget.Toast;

import org.ruiyichen.guizhou.agr.utils.StrUtil;

/**
 * Created by Administrator on 2018/8/20.
 */

public class BToast {

    private volatile static BToast instance;

    private Context content;

    private BToast() {
    }

    public static BToast getInstance() {
        if (instance == null) {
            synchronized (BToast.class) {
                if (instance == null) {
                    instance = new BToast();
                }
            }
        }
        return instance;
    }

    public void init(Context content) {
        this.content = content;
    }

    public void show(String tips) {
        if (StrUtil.isEmpty(tips)) return;
        Toast.makeText(content, tips, Toast.LENGTH_SHORT).show();
    }
}
